//
//  UIButton+TTButton.m
//  TTWeibo
//
//  Created by 陶宏路 on 16/7/20.
//  Copyright © 2016年 陶路路. All rights reserved.
//

#import "UIButton+TTButton.h"

@implementation UIButton (TTButton)

-(void)getButtonWithtarget:(id)object title:(NSString*)title img:(NSString*)image selector:(SEL)selector{
    
    [self setTitle:title forState:UIControlStateNormal];
    [self setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    [self addTarget:object action:selector forControlEvents:UIControlEventTouchUpInside];
}

@end
